package com.qj.platform.pay.core.holder;

import com.qj.platform.pay.core.domain.Operator;

/**
 * Created by hezhijie on 2016/11/24.
 */
public class OperatorContextHolder {

    private static final ThreadLocal<Operator> USER_CONTEXT=new ThreadLocal<>();

    public static void set(Operator operator){
        USER_CONTEXT.set(operator);
    }

    public static Operator get(){
        return USER_CONTEXT.get();
    }
}
